home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacGames Sampler
/
PHT MacGames Bundle.iso
/
MacSource Folder
/
Samples from the CD
/
C and C++
/
GNU Chess 3.0
/
Sources TC 4.0
/
DragMgr.h
< prev
next >
Wrap
Text File
|
1991-02-19
|
880b
|
34 lines
/*
D'après Scott T. Boyd of the MacHax Group
Utilisation: Cf MacTutor v3 n°7 [July '87]
Modifications pour l'adaptation à une fenêtre : Airy ANDRE
Interface C : Airy ANDRE
*/
typedef struct ShadowRecord {
Boolean visible;
int dx,dy;
int CopyMode;
} ShadowRecord;
typedef struct DragRecord {
BitMap ShadowBits, UnderShadowBits,UnderBits,PictureBits;
RgnHandle ShadowRegion,ThePictureRgn;
} DragRecord, *DragPtr, **DragHandle;
typedef BitMap *BitMapPtr;
extern ShadowRecord ShadowStuff;
extern BitMap OffScreenBits;
extern Boolean InitDrag(BitMapPtr, Rect *);
extern Boolean NewDraggable(PicHandle, PicHandle, BitMapPtr, BitMapPtr,
DragHandle *);
extern void DragItTo(DragHandle, Point, Boolean, Boolean);
extern void DisposeDraggable(DragHandle);
extern void UpdateOffScreen(void);
extern void CloseDrag(Boolean);
extern Rect * GetLastRect(void);